package com.example.demo.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import org.springframework.amqp.core.Queue;

@Configuration
/**
 * 配置队列
 */
public class RabbittmqConfig {
    @Bean
    public Queue queue(){
        return new Queue("Queue1");
    }
}
